#encoding:utf-8
class AddProvinceCityCardTypeOfAccount < ActiveRecord::Migration
  def up
    add_column :accounts, :province, :string
    add_column :accounts, :city, :string
    add_column :accounts, :card_type ,:string

    # Account.all.each do |account|
    #   account.insert_detail_info
    #   account.save if account.valid?
    # end

  end

  def down
    remove_column :accounts, :province
    remove_column :accounts, :city
    remove_column :accounts, :card_type
  end
end
